Transformations of random variables